package com.aipp.mall.common.utils;

import com.aipp.mall.h5.domain.entity.Member;

/**
 * @author Administrator
 */
public class LocalDataUtil {

    private static final ThreadLocal<Member> LOCAL_VARS = new ThreadLocal<>();

    public static void setVar(Member member) {
        LOCAL_VARS.set(member);
    }

    public static Member getVar() {
        return LOCAL_VARS.get();
    }

    public static void remove() {
        LOCAL_VARS.remove();
    }
}
